package com.yungu.swift.order.model.enums;

/**
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
public enum OrderErrorEnum {

    /**
     * sys 模块错误码信息返回
     */
    ERR_CODE_NO_PRICE_RULE(4000, "该车型尚未开通，无法获取价格"),
    ERR_CODE_CANCEL_RESTRICT_RULE(4001, "乘客取消订单次数限制"),
    ERR_CODE_NO_RENTAL_RULE(4002, "该业务暂未开通"),
    ERR_CODE_COUPON_PAID(4003, "优惠券完全抵扣"),
    ERR_CODE_ZERO_PAID(4004, "应付金额为0"),
    ERR_CODE_DOUBLE_PAY(4005, "订单正在支付中，请等待支付完成，勿重复支付"),
    ERR_CODE_HAD_PAID(4006, "支付已完成，请勿重复支付"),
    ERR_CODE_HAD_REFUNDDING(4007, "订单正在退款中"),
    ERR_CODE_HAD_REFUNDED(4008, "订单已退款"),
    ERR_CODE_EVALUATE_SENSITIVEWORD(4009, "评价信息中包含敏感词"),
    GRAB_ERROR_1001(4010, "订单已被其他司机抢走"),
    GRAB_ERROR_1002(4011, "订单结束"),
    GRAB_ERROR_1003(4012, "订单已被乘客取消"),
    GRAB_ERROR_4013(4013, "订单已超时自动取消"),
    GRAB_ERROR_1100(4014, "订单状态异常"),
    GRAB_ERROR_1004(4015, "该时段已有待服务订单"),
    GRAB_ERROR_4016(4016, "您当前有未完成的即时单，无法抢单"),
    GRAB_ERROR_4017(4017, "订单已被改派-20001"),
    ORDER_CROSS_STATUS_CHANGE_ERROR(4301, "跨城订单状态错误"),
    ORDER_CROSS_STATUS_CHANGE_ORDER_CLOSE(4302, "跨城订单状态变更时已被关闭"),
    ;

    private Integer code;
    private String msg;

    OrderErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
